<?php


namespace DebugBar\DataCollector;


class PhpInfoCollector extends DataCollector implements Renderable
{
    
    public function getName()
    {
        return 'php';
    }

    
    public function collect()
    {
        return array(
            'version' => PHP_VERSION,
            'interface' => PHP_SAPI
        );
    }

    
    public function getWidgets()
    {
        return array(
            "php_version" => array(
                "icon" => "code",
                "tooltip" => "Version",
                "map" => "php.version",
                "default" => ""
            ),
        );
    }
}
